{% extends "base.html" %}

{% block content %}
	<h2>Profiles</h2>

	{% for member in orphan_members %}
		<div class="profiles-member">
			<h4>{{ member }}</h4>
			<img src="{{ member.image.get_avatar_url }}" class="profiles-image" />
			<div class="profile-member-description">{{ member.description }}</div>
		</div>
	{% endfor %}
	
	{% for team in teams %}
	<div class="profiles-team">
		<h3>{{ team.name }}</h3>
		<div class="profiles-team-description">{{ team.description }}</div>
	
		{% for member in team.public_members.all %}
			{% if member.is_public %}
				<div class="profiles-member">
					<h4>{{ member }}</h4>
					<div class="profiles-member-position">{{ member.position }}</div>
					<div class="profiles-member-description">{{ member.description }}</div>
					<img src="{{ member.image.get_avatar_url }}" class="profiles-image" />
				</div>
			{% endif %}
		{% endfor %}
	</div>
	{% endfor %}
{% endblock %}